package com.taoxi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.taoxi.common.annotation.Excel;
import com.taoxi.common.core.domain.BaseEntity;

/**
 * 库存管理对象 inventory
 * 
 * @author ruoyi
 * @date 2024-10-10
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long id;

    /** 商铺ID */
    @Excel(name = "商铺ID")
    private Long goodId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private String quantity;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodName;

    /** 库存预警数 */
    @Excel(name = "库存预警数")
    private Long alert;

    /** 库存单位 */
    @Excel(name = "库存单位")
    private String unit;

    /** 库存地址 */
    @Excel(name = "库存地址")
    private String address;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setQuantity(String quantity) 
    {
        this.quantity = quantity;
    }

    public String getQuantity() 
    {
        return quantity;
    }
    public void setGoodName(String goodName) 
    {
        this.goodName = goodName;
    }

    public String getGoodName() 
    {
        return goodName;
    }
    public void setAlert(Long alert) 
    {
        this.alert = alert;
    }

    public Long getAlert() 
    {
        return alert;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodId", getGoodId())
            .append("quantity", getQuantity())
            .append("goodName", getGoodName())
            .append("alert", getAlert())
            .append("unit", getUnit())
            .append("address", getAddress())
            .append("image", getImage())
            .toString();
    }
}
